import request from '@/axios';
import { baseUrl } from '@/config/env';

// 榜单详情-吃住行-列表
export const listDetailesList = (data) => request({
    url: baseUrl + '/listDetailes/select',
    method: 'post',
    data
});
// 榜单详情-吃住行-删除
export const listDetailesDelete = (id) => request({
    url: baseUrl + `/listDetailes/delete/${id}`,
    method: 'get'
});
// 榜单详情-吃住行-修改
export const listDetailesUpdate = (data) => request({
    url: baseUrl + '/listDetailes/update',
    method: 'post',
    data
});
// 榜单详情-吃住行-新增
export const listDetailesAdd = (data) => request({
    url: baseUrl + '/listDetailes/add',
    method: 'post',
    data
});

// 榜单详情-推荐榜单-列表
export const recommendedListList = (data) => request({
    url: baseUrl + '/listDetailes/recommendedList/select',
    method: 'post',
    data
});
// 榜单详情-推荐榜单-删除
export const recommendedListDelete = (id) => request({
    url: baseUrl + `/listDetailes/recommendedList/delete/${id}`,
    method: 'get'
});
// 榜单详情-推荐榜单-修改
export const recommendedListUpdate = (data) => request({
    url: baseUrl + '/listDetailes/recommendedList/update',
    method: 'post',
    data
});
// 榜单详情-推荐榜单-新增
export const recommendedListAdd = (data) => request({
    url: baseUrl + '/listDetailes/recommendedList/insert',
    method: 'post',
    data
});
// 榜单详情-推荐榜单-新增-按类型查询
export const recommendedListRelevancySelect = (data) => request({
    url: baseUrl + '/listDetailes/recommendedList/relevancySelect',
    method: 'post',
    data
});